package com.zcg.blogger.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 留言
 * @author zcg
 *
 */
public class Message implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1232131241L;

	/**
	 * id
	 */
	private int id;
	
	/**
	 * 留言内容
	 */
	private String message;
	
	/**
	 * 留言用户
	 */
	private User user;
	
	/**
	 * 留言时间
	 */
	private Date time;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	@Override
	public String toString() {
		return "Message [id=" + id + ", message=" + message + ", user=" + user
				+ ", time=" + time + "]";
	}

}